global maxStd_rep stdBackIn filter_chanel

properties_fig=figure(50);
set(properties_fig,'Color',[0.8 1 1], ...
   	'units','normalized', ...
   	'Position',[0.55 0.07 0.40 0.33], ...
   	'DoubleBuffer','on',...
   	'Tag','properties_fig',...
    'NumberTitle','off',...
    'Name','MCGH -Properties');	

        
maxStd_repeatedSpot=uicontrol('Parent',properties_fig,'Style','popupmenu',...
        'Position',[ 300 220 90 20],...   
        'String', '=0.1|=0.2|=0.3|=0.4|=0.5|=0.6|=0.7|=0.8|=0.9|=1.0', ... 
        'Callback',['maxStd_rep=get(maxStd_repeatedSpot,''Value'');']);
htxt_ch1_file1=uicontrol('Parent',properties_fig,...
		    'Style', 'text', ...
		    'Position', [300-120 220 90 40],...
		    'String','Maximum STD of repeated spots', ...
		    'BackgroundColor',[1 1 1],...
            'FontWeight',  'bold', ...
		    'HorizontalAlignment', 'left', ...
		    'Tag', 'maxStd_repeatedSpot');

        
stdBack_intensity=uicontrol('Parent',properties_fig,'Style','popupmenu',...
        'Position',[ 300 145 90 20],...   
        'String', 'BK+0*BK_STD|BK+1*BK_STD|BK+2*BK_STD|BK+3*BK_STD|BK+4*BK_STD|BK+5*BK_STD | 1*BK|2*BK|3*BK|4*BK|5*BK', ... 
        'Callback',['stdBackIn=get(stdBack_intensity,''Value'');']);
htxt_ch2_file1=uicontrol('Parent',properties_fig,...
		    'Style', 'text', ...
		    'Position', [300-120 145 90 40],...
		    'BackgroundColor', [1 1 1], ...
		    'String','Signal to noise level', ...
		    'FontWeight',  'bold', ...
		    'HorizontalAlignment', 'left', ...
		    'Tag', 'signel_to_noise_level');
     
closeBut1=uicontrol('style','push','string','Exit',...
	'position',[ 200 60 90 20], ...
	'callback', ['delete(properties_fig); clear properties_fig;'],'Interruptible','on');

%'MenuBar','none',...
proper_axes = axes('Parent',properties_fig, ...
		 'CameraUpVector',[0 1 0], ...
		 'CameraUpVectorMode','manual', ...
		 'Color',[0.8 1 1], ...
		 'Position',[200 60 90 20], ...
		 'Tag','Properties_fig_axes', ...
		 'XColor',[0.8 1 1], ...
		 'YColor',[0.8 1 1], ...
		 'ZColor',[0.8 1 1],...
         'XTick',[],...
         'YTick',[]');
axes(proper_axes);
set(properties_fig,'HandleVisibility','off');

        
filter_chanels=uicontrol('Parent',properties_fig,'Style','popupmenu',...
        'Position',[ 300 100 90 20],...   
        'String', 'single chanel|both chanel', ... 
        'Callback',['filter_chanel=get(filter_chanels,''Value'');']);
htxt_filter=uicontrol('Parent',properties_fig,...
		    'Style', 'text', ...
		    'Position', [300-120 100 90 40],...
		    'BackgroundColor', [1 1 1], ...
		    'String','Filtering channels', ...
		    'FontWeight',  'bold', ...
		    'HorizontalAlignment', 'left', ...
		    'Tag', 'filter_chanels');

        

        
if ~isempty(maxStd_rep)
 set(maxStd_repeatedSpot,'Value',maxStd_rep);
end

if ~isempty(stdBackIn)
 set(stdBack_intensity,'Value',stdBackIn);
end

if ~isempty(filter_chanel)
    set(filter_chanels,'Value',filter_chanel);
end


